﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ERP3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void LeftTreeView_DoubleClick(object sender, EventArgs e)
        {
            TreeNode selectedNode = this.LeftTreeView.SelectedNode;
            if ("Order".Equals(selectedNode.Name))
            {
                this.mainGroupBox.Controls.Add(this.OrderDataGrid);
            }
        }
    }
}
